package com.dhcc.cdc.busi.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.dhcc.cdc.sys.entity.CdcDataEntity;
import com.dhcc.core.framework.base.entity.DataEntity;
import com.dhcc.core.modules.system.entity.Dept;

/**
 * 科室病区
 * 
 * @ClassName: CdcLocationEntity
 * @Description: TODO
 * @author jumper
 * @date 2021-03-15 10:20:07
 */
@TableName("t_cdc_ct_location")
public class CdcLocationEntity extends DataEntity<CdcLocationEntity> {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    // 索引码
    private String xcode;
    // 代码
    private String code;
    // 描述
    private String description;
    // 别名
    private String description2;
    // 类型
    private Long busLocTypeId;
    @TableField(exist = false)
    private CdcDictionaryEntity busLocType;
    // 角色
    private Long busLocRoleId;
    @TableField(exist = false)
    private CdcDictionaryEntity busLocRole;
    // 是否手术科室
    private Integer isOper;
    // 是否新生儿病房
    private Integer isNicu;
    // 是否ICU病房
    private Integer isIcu;
    // ICU科室类型
    private Long busLocIcuId;
    @TableField(exist = false)
    private CdcDictionaryEntity busLocIcu;
    // 父指针
    private Long parLocId;
    @TableField(exist = false)
    private CdcLocationEntity parLoc;
    public CdcLocationEntity getParLoc() {
        return parLoc;
    }
    public void setParLoc(CdcLocationEntity parLoc) {
        this.parLoc = parLoc;
    }
    // 所属院区
    private Long hospitalId;
    @TableField(exist = false)
    private CdcHospitalEntity hospital;
    // 系统部门
    private Long sysDeptId;
    @TableField(exist = false)
    private Dept sysDept;
    // 业务数据类型
    private Long dataId;
    @TableField(exist = false)
    private CdcDataEntity data;	
	public CdcDataEntity getData() {
        return data;
    }
    public void setData(CdcDataEntity data) {
        this.data = data;
    }
    // 是否有效
    private Integer isActive;

    public CdcDictionaryEntity getBusLocType() {
        return busLocType;
    }

    public void setBusLocType(CdcDictionaryEntity busLocType) {
        this.busLocType = busLocType;
    }

    public CdcDictionaryEntity getBusLocRole() {
        return busLocRole;
    }

    public void setBusLocRole(CdcDictionaryEntity busLocRole) {
        this.busLocRole = busLocRole;
    }

    public CdcDictionaryEntity getBusLocIcu() {
        return busLocIcu;
    }

    public void setBusLocIcu(CdcDictionaryEntity busLocIcu) {
        this.busLocIcu = busLocIcu;
    }

    public CdcHospitalEntity getHospital() {
        return hospital;
    }

    public void setHospital(CdcHospitalEntity hospital) {
        this.hospital = hospital;
    }

    public Dept getSysDept() {
        return sysDept;
    }

    public void setSysDept(Dept sysDept) {
        this.sysDept = sysDept;
    }

    public Long getSysDeptId() {
        return sysDeptId;
    }

    public void setSysDeptId(Long sysDeptId) {
        this.sysDeptId = sysDeptId;
    }

    /**
     * 设置：索引码
     */
    public void setXcode(String xcode) {
        this.xcode = xcode;
    }

    /**
     * 获取：索引码
     */
    public String getXcode() {
        return xcode;
    }

    /**
     * 设置：代码
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 获取：代码
     */
    public String getCode() {
        return code;
    }

    /**
     * 设置：描述
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 获取：描述
     */
    public String getDescription() {
        return description;
    }

    /**
     * 设置：别名
     */
    public void setDescription2(String description2) {
        this.description2 = description2;
    }

    /**
     * 获取：别名
     */
    public String getDescription2() {
        return description2;
    }

    /**
     * 设置：类型
     */
    public void setBusLocTypeId(Long busLocTypeId) {
        this.busLocTypeId = busLocTypeId;
    }

    /**
     * 获取：类型
     */
    public Long getBusLocTypeId() {
        return busLocTypeId;
    }

    /**
     * 设置：角色
     */
    public void setBusLocRoleId(Long busLocRoleId) {
        this.busLocRoleId = busLocRoleId;
    }

    /**
     * 获取：角色
     */
    public Long getBusLocRoleId() {
        return busLocRoleId;
    }

    /**
     * 设置：是否手术科室
     */
    public void setIsOper(Integer isOper) {
        this.isOper = isOper;
    }

    /**
     * 获取：是否手术科室
     */
    public Integer getIsOper() {
        return isOper;
    }

    /**
     * 设置：是否新生儿病房
     */
    public void setIsNicu(Integer isNicu) {
        this.isNicu = isNicu;
    }

    /**
     * 获取：是否新生儿病房
     */
    public Integer getIsNicu() {
        return isNicu;
    }

    /**
     * 设置：是否ICU病房
     */
    public void setIsIcu(Integer isIcu) {
        this.isIcu = isIcu;
    }

    /**
     * 获取：是否ICU病房
     */
    public Integer getIsIcu() {
        return isIcu;
    }

    /**
     * 设置：ICU科室类型
     */
    public void setBusLocIcuId(Long busLocIcuId) {
        this.busLocIcuId = busLocIcuId;
    }

    /**
     * 获取：ICU科室类型
     */
    public Long getBusLocIcuId() {
        return busLocIcuId;
    }

    /**
     * 设置：父指针
     */
    public void setParLocId(Long parLocId) {
        this.parLocId = parLocId;
    }

    /**
     * 获取：父指针
     */
    public Long getParLocId() {
        return parLocId;
    }

    /**
     * 设置：所属院区
     */
    public void setHospitalId(Long hospitalId) {
        this.hospitalId = hospitalId;
    }

    /**
     * 获取：所属院区
     */
    public Long getHospitalId() {
        return hospitalId;
    }

    /**
     * 设置：业务数据类型
     */
    public void setDataId(Long dataId) {
        this.dataId = dataId;
    }

    /**
     * 获取：业务数据类型
     */
    public Long getDataId() {
        return dataId;
    }

    /**
     * 设置：是否有效
     */
    public void setIsActive(Integer isActive) {
        this.isActive = isActive;
    }

    /**
     * 获取：是否有效
     */
    public Integer getIsActive() {
        return isActive;
    }
}
